<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script>

    //列表页
    // var box = document.getElementsByClassName("proListLeft")[0];
    // var lis = box.getElementsByTagName("li");
    // var data = [];
    // for (var i = 0; i < lis.length; i++) {

    //     var url = lis[i].getElementsByClassName("forbid-title4")[0];
    //     // var price = lis[i].getElementsByClassName("seaNewPrice")[0];
    //     // var decs = lis[i].getElementsByClassName("newName")[0];
    //     // var shopName = lis[i].getElementsByClassName("newCname")[0];
    //     // var areaBox = lis[i].getElementsByClassName("areaBox")[0];
    //     console.log(url);
    //     var good = {};
    //     good.url = url.src;
    //     // good.prices = price.innerText;
    //     // good.decs = decs.innerHTML;
    //     // good.shopName = shopName.innerText;
    //     // good.areaBox = areaBox.innerText;
    //     console.log(good.url);

    //     data.push(good);
    // }
    // console.log(data);

    var box = document.getElementsByClassName("proListLeft")[0];
    var lis = box.getElementsByTagName("li");
    var data = [];
    for (var i = 0; i < lis.length; i++) {
        var Img = lis[i].getElementsByClassName("proImg")[0];
        var urls = Img.getElementsByTagName("img")[0];
        // var price = lis[i].getElementsByClassName("seaNewPrice")[0];
        // var decs = lis[i].getElementsByClassName("newName")[0];
        // var shopName = lis[i].getElementsByClassName("newCname")[0];
        // var areaBox = lis[i].getElementsByClassName("areaBox")[0];
        // console.log(Img);
        // console.log(urls);
        // console.log(lis);
        var good = {};
        // good.bigsrc = Img.src;
        good.smalsrc = urls.src;
        // good.prices = price.innerText;
        // good.decs = decs.innerHTML;
        // good.shopName = shopName.innerText;
        // good.areaBox = areaBox.innerText;
                console.log(good.smalsrc);
        //         console.log(good.bigsrc);
        //         data.push(good);
    }
</script>

</html>